﻿@{
    Layout = null;

}
@using EduModel;
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link href="~/Resource/layui/css/layui.css?v=1" rel="stylesheet" />
</head>
<body>
    <fieldset class="layui-elem-field layui-form" id="queryPanel">
        <legend>筛选条件</legend>
        <div class="layui-field-box">
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input type="text" value="" placeholder="姓名" id="realName" class="layui-input search_input">
                </div>
                <div class="layui-input-inline">
                    <input type="text" value="" placeholder="登录名" id="loginName" class="layui-input search_input">
                </div>
                <div class="layui-input-inline">
                    <select name="school" id="school" lay-filter="school" lay-search>
                        <option value="">学校</option>
                        @foreach (T_School school in Model)
                        {
                            <option value="@school.SchoolId">@school.SchoolName</option>
                        }
                    </select>
                </div>
                <a class="layui-btn" event="search">查询</a>
            </div>
            <div class="layui-inline">
                <a class="layui-btn layui-btn-normal" event="add">添加用户</a>
            </div>
            <div class="layui-inline">
                <a class="layui-btn layui-btn-danger" event="del">批量删除</a>
            </div>
        </div>
    </fieldset>
    <table class="layui-hide" id="container" lay-filter="tableList"></table>
    
    <script type="text/html" id="tableBar">
        <a class="layui-btn layui-btn-xs" lay-event="detail">查看</a>
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    </script>
    <script type="text/html" id="stateTpl">
        <input type="checkbox" name="userstate" lay-skin="switch" {{d.UserState == 1?"checked":""}} lay-text="ON|OFF" lay-filter="userstate" value="{{d.UserId}}">
    </script>
    <script src="~/Resource/layui/layui.js?v=1"></script>
    <script src="~/Resource/js/page/admin/student.js"></script>
</body>
</html>
